<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>7.1.2 P68 模板受限</title>
</head>
<body>
<div id="app">
    <table>
        <tbody is="my-component"></tbody>
    </table>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    Vue.component('my-component',{
        template:'<div>这里是组件内容</div>'
    });
    var app = new Vue({
        el:'#app'
    })
</script>
</body>
</html>